function ProductListCtrl($rootScope, $scope, $timeout, $http, $routeParams,
		autocompleteService) {
	$scope.id = $routeParams.id;
	$scope.results = [];
	$scope.breadcrumbs = [];
	$scope.breadcrumb = {};
	
	$scope.initBreadCrumbs = function() {
		$http.post(DOMAIN + '/data/breadcrumbs/' + $scope.id).success(function(data) {
			$scope.breadcrumbs = data;
			$scope.breadcrumb = $scope.breadcrumbs[0];
			$scope.breadcrumbs.splice(0, 1);
		});
	};
	
	$scope.initData = function() {
		$http.post(DOMAIN + '/data/list/' + $scope.id).success(function(data) {
			$scope.results = data;
		});
	};

	$scope.initBreadCrumbs();
	$scope.initData();
}
SiteCtrl.$inject = [ '$rootScope', '$scope', '$http', '$routeParams',
		'autocompleteService' ];